package com.woniu.controller;


import com.woniu.entity.PageData;
import com.woniu.entity.Result;
import com.woniu.entity.dto.TrainingDTO;
import com.woniu.service.ITrainingService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiaosong
 * @since 2023-03-31
 */
@RestController
@RequestMapping("/training")
/*
@Api(tags = "靶场表相关方式")
*/
public class TrainingController extends BaseController{

//    注入靶场表service
      @Autowired
      private ITrainingService trainingService;

/*
//      靶场内部，展示所有的靶场信息。
      @PostMapping("/search/{currentPage}/{pageSize}")
      @ApiOperation("分页条件查询")
      public Result  selectPageAll(
              @PathVariable Integer currentPage,
              @PathVariable Integer pageSize,
              @RequestBody TrainingDTO trainingDTO
              ){
            PageData pageData = trainingService.search(currentPage,pageSize,trainingDTO);
            return toDataResult(pageData);
      }*/

}
